/******************************init****************************/
function queryStudent(page) {
	var parm = $('#queryStudentForm').serialize() + (page != null ? ('&page=' + page) : '');
	var url = create_url('student-query');
	sys_record_parm('student',parm);
	sys_loading();
	$.ajax({type:'POST', url:url, data:parm,
		success: function(result) {
			sys_loading_close();
			$('#studentResultList').html(result);
		}
	});
}

/*************edit*****************/
function saveCourse() {
	var parm = $('#editStudentForm').serialize();
	var url = create_url('student-save');
	sys_submiting();
	$.ajax({type:'POST', url:url, data:parm,
		success: function(result) {
		sys_submiting_close();
			if ('success' == result) {
				sys_msg('操作成功!');
				sys_load_handle('student');
			}
		}
	});
}


function selectCourse(code){
	var url = create_url('course-addInit');
	var parm = {'id':'fc', 'name':'fn', 'code':code};
	$.colorbox({overlayClose:false, href:url, data:parm, close:'[关闭]', width:'800px', height:'600px', open:true});
}